package com.zhouyu.service;

import org.springframework.beans.factory.BeanNameAware;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Primary;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import javax.annotation.Priority;

//@Component
//@Primary
//值越小，优先级越高
//@Priority(value = 1)
@Component
//@Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class OrderService /*implements OrderInterface*/ /*implements OrderInterface, BeanNameAware*/ {

	//private String beanName;
	//
	//@Override
	//public void setBeanName(String name) {
	//	this.beanName = name;
	//}
	//
	//
	//@Override
	//public String toString() {
	//	return "OrderService{" +
	//			"beanName='" + beanName + '\'' +
	//			'}';
	//}

	//public  UserService createBean() {
	//	return new UserService();
	//}

	//public static UserService createBean() {
	//
	//	return new UserService();
	//}


}
